-
Notifications
You must be signed in to change notification settings - Fork 4
Change ActiveEntityModifier and add further checks to DraftCancelAttachmentsHandler #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
182c2e2 to
6a0abf7
Compare
beckermarc
reviewed
Nov 6, 2025
...java/com/sap/cds/feature/attachments/handler/draftservice/DraftCancelAttachmentsHandler.java
Outdated
Show resolved
Hide resolved
16e0372 to
e8d63f6
Compare
e8d63f6 to
7f493ed
Compare
adamandre79
approved these changes
Nov 10, 2025
beckermarc
reviewed
Nov 10, 2025
...java/com/sap/cds/feature/attachments/handler/draftservice/ActiveEntityModifierFlattener.java
Outdated
Show resolved
Hide resolved
...java/com/sap/cds/feature/attachments/handler/draftservice/DraftCancelAttachmentsHandler.java
Show resolved
Hide resolved
...java/com/sap/cds/feature/attachments/handler/draftservice/ActiveEntityModifierFlattener.java
Outdated
Show resolved
Hide resolved
45a73b0 to
70f98c4
Compare
Contributor
Author
|
@rashmiangadi11: I will leave this in draft until Mengmeng has tested this. |
70f98c4 to
61cd091
Compare
61cd091 to
411d7cd
Compare
96a0457 to
8a38210
Compare
c14f771 to
1502553
Compare
DraftCancelAttachmentsHandler
Then they can be correctly transformed into select statements in the DraftCancelAttachmentsHandler
1502553 to
e19621e
Compare
Contributor
Author
|
Update from @rashmiangadi11: Apparently this fixes Mengmengs problem 👍 , thus I've marked this PR as ready for review. |
8a0c000 to
3220975
Compare
rashmiangadi11
approved these changes
Nov 14, 2025
Collaborator
rashmiangadi11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes: #526
Changes:
The problem was: when "fiori": { "draft_messages": true }, the UI sends refs with multiple segments, this caused problems before with the SELECT statement construction, now the SELECT statement is constructed differently. I have then renamed the ActiveEntityModifier to ModifierToCreateFlatCQN, to reflect better what it does.
DraftCancelAttachmentsHandler:processBeforeDraftCancel, such that the content of this method is only executed when we cancel sth. attachment-related.